<template>
  <view class="page">
    <text :selectable="true" space="nbsp" :decode="true">{{text}}</text>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        text: '我是&lt;text&gt;&nbsp;组件'
      };
    }
  }
</script>

<style lang="scss">
  .page {
    width: 100%;
    height: 100vh;
  }
</style>